import java.util.Scanner;

public class NumberDetails {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("请输入一个三位整数：");
        int number = scanner.nextInt();

        int hundreds = number / 100;
        int tens = (number / 10) % 10;
        int ones = number % 10;

        int maxDigit = Math.max(Math.max(hundreds, tens), ones);

        System.out.println("数字" + number + "的情况如下:");
        System.out.println("个位数:" + ones);
        System.out.println("十位数:" + tens);
        System.out.println("百位数:" + hundreds);
        System.out.println("最大数:" + maxDigit);
    }
}
